package cn.imvc.app.controllers.system;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;

import cn.imvc.app.entities.Logging;
import cn.imvc.app.models.LoggingModel;
import cn.imvc.data.domain.ViewRequest;

public class LoggingControllerImpl implements LoggingController{

	public Page<Logging> page;
	public ViewRequest viewRequest;
	public Logging logging;
	public int id;
	@Autowired
	LoggingModel loggingModel;
	@Override
	public String search() {
		// TODO Auto-generated method stub
		return null;
	}

	public String index() {
		if(viewRequest==null){
			viewRequest = new ViewRequest();
		}
		page = loggingModel.find(viewRequest);
		return "logging/index";
	}

	public String show() {
		logging = loggingModel.get(id);
		return "logging/show";
	}

	@Override
	public String editNew() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public String create() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public String edit() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public String update() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public String destroy() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public String destroyBatch() {
		// TODO Auto-generated method stub
		return null;
	}

	public ViewRequest getViewRequest() {
		return viewRequest;
	}

	public void setViewRequest(ViewRequest viewRequest) {
		this.viewRequest = viewRequest;
	}

	public Logging getLogging() {
		return logging;
	}

	public void setLogging(Logging logging) {
		this.logging = logging;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

}
